<?php defined('ByShopWWI') or exit('Access Invalid!');?>
<link rel="stylesheet" type="text/css" href="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/themes/ui-lightness/jquery.ui.css"  />

<div class="wrap">
  <div class="tabmenu">
    <?php include template('layout/submenu');?>
  </div>
  <div class="alert alert-block">
        <h4>消费豆获得及使用规则</h4>
        <ul>
            <!--修改<li>成功注册会员：增加<em><?php echo C('points_reg');?></em>积分；会员每天登录：增加<em><?php echo C('points_login');?></em>积分；评价完成订单：增加<em><?php echo C('points_comments');?></em>积分。</li>
            <?php if (C('points_orderrate')) {?><?php }?>
            <li>购物并付款成功后将获得订单总价的积分，积分比例1元：100个积分。</li>
            <li>如订单发生退款、退货等问题时，系统后台将冻结您的账号，积便扣除积分你所你说产生的积分和余额现金。</li> 
            <li>◇ 会员可用宝豆自行转换消费豆比例为100：1</li>
            <li>◇ 消费豆由前一日宝豆总额不低于10000时，依据平台转化的权重进行转化。</li>
            <li>◇ 消费会员购物后1:1返还消费豆</li>
            <li>◇ 购物使用消费豆时，同时扣除使用的消费豆，并增加使用金钱1:1的消费豆</li>-->
            <li>◇ 在商场购物可使用消费豆</li>
        </ul>
  </div>
  <form method="get" action="index.php">
    <table class="ncm-search-table">
      <input type="hidden" name="act" value="member_consume" />
      <tr><td class="w10">&nbsp;</td>
        <td><strong>消费豆</strong><strong style="color: #F00;"><?php echo $output['consume_integral']['consume_integral']; ?></strong>&nbsp;&nbsp;<?php echo ''; ?><strong style="color: #F00;"></strong></td>
        <th>处理时间</th>
        <td class="w240"><input type="text" id="stime" name="stime" class="text w70" value="<?php echo $_GET['stime'];?>"><label class="add-on"><i class="icon-calendar"></i></label>&nbsp;&#8211;&nbsp;<input type="text" id="etime" name="etime" class="text w70" value="<?php echo $_GET['etime'];?>"><label class="add-on"><i class="icon-calendar"></i></label></td>
       
        <th>小票编号</th>
        <td class="w160"><input type="text" class="text w150" id="description" name="description" value="<?php echo $_GET['description'];?>"></td>
        <td class="w70 tc"><label class="submit-border">
            <input type="submit" class="submit" value="<?php echo $lang['nc_search'];?>" />
          </label></td>
      </tr>
    </table>
  </form>
  <table class="ncm-default-table">
    <thead>
      <tr>
         <th class="w200">处理时间</th>
         <th class="w150">所得积分</th>
         <th class="w200">支付积分</th>
         <th class="w200">支付商户</th>
         <th class="w200">小票编号</th>
         <th class="w200">描述</th>
         <?php echo $lang['points_pointsdesc']; ?></th>
      </tr>
    </thead>
    <tbody>
      <?php  if (!empty($output['list_log'])) { ?>
      <?php foreach($output['list_log'] as $val) { ?>
      <tr class="bd-line">
        <td class="goods-time"><?php echo $val['operate_time'];?></td>
        <td class="goods-price"><?php echo ncPriceFormat($val['money']); ?></td>
        <td class="goods-price"><?php echo $val['consume_integral']; ?></td>
        <td class="goods-price"><?php echo $val['shop_id']; ?></td>
        <td class="goods-price"><?php echo $val['order_id']; ?></td>
        <td class="goods-price"><?php echo $val['stass']; ?></td>
        <td class="goods-price"><?php echo $val['pl_desc'];?></td>
      </tr>
      <?php } ?>
      <?php } else { ?>
      <tr>
        <td colspan="20" class="norecord"><div class="warning-option"><i>&nbsp;</i><span><?php echo $lang['no_record']; ?></span></div></td>
      </tr>
      <?php } ?>
    </tbody>
    <tfoot>
      <?php  if (count($output['list_log'])>0) { ?>
      <tr>
        <td colspan="20"><div class="pagination"><?php echo $output['show_page']; ?></div></td>
      </tr>
      <?php } ?>
    </tfoot>
  </table>
</div>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/jquery-ui/i18n/zh-CN.js" charset="utf-8"></script> 
<script language="javascript">
$(function(){
	$('#stime').datepicker({dateFormat: 'yy-mm-dd'});
	$('#etime').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>